/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.farmcode.console.ejb.business.custom;

import com.farmcode.console.api.business.custom.ExtProjectManager;
import com.farmcode.base.dao.DAOException;
import com.farmcode.console.api.business.BaseProjectManagerBean;
import com.farmcode.console.api.dao.custom.ExtProjectDAO;
import com.farmcode.console.api.model.Project;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Local;
import javax.ejb.Stateless;

/**
 *
 * @author Oscar Ivan Prado
 */
@Local(ExtProjectManager.class)
@Stateless
public class ExtProjectManagerBean extends BaseProjectManagerBean implements ExtProjectManager {
    @EJB
    private ExtProjectDAO extProjectDAO;
    @Override
    public Project getProjectByName(String name) throws DAOException{
        return extProjectDAO.getProjectByName(name);
    }

    @Override
    public List<Project> getProjectsByUser(String userName) throws DAOException {
        return extProjectDAO.getProjectByUser(userName);
    }
}
